#include<bits/stdc++.h>
using namespace std;
int main(){
    freopen("arena.in","r",stdin);
    freopen("arena.out","w",stdout);
    cout<<"5"<<endl<<"2 19"<<endl<<"3 7"<<endl<<"4 1"<<endl;
    return 0;
}
